@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: ' ';
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center;
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(
    90deg,
    rgba(32, 182, 249, 1) 0%,
    rgba(32, 182, 249, 1) 0%,
    rgba(33, 120, 241, 1) 100%,
    rgba(33, 120, 241, 1) 100%
  );

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

// 右侧顶部 当前选项卡选中高度
.main-container .el-scrollbar__wrap {
  height: 42px !important;
  line-height: 42px !important;
}

.el-menu li {
  font-size: 15px;
  -moz-user-select: none; /*火狐*/
  -webkit-user-select: none; /*webkit浏览器*/
  -ms-user-select: none; /*IE10*/
  -khtml-user-select: none; /*早期浏览器*/
  user-select: none;
}

.el-menu li i {
  margin-right: 10px;
  font-size: 18px;
  color: rgb(191, 203, 217);
}

.tags-view-container .tags-view-wrapper .tags-view-item.active {
  height: 42px !important;
  line-height: 42px !important;
  margin: 0 !important;
  background-color: rgb(64, 158, 255) !important;
  vertical-align: top;
}

.sidebar-logo-container.collapse + div .el-tooltip {
  text-align: center !important;
}

.router-link-exact-active.router-link-active li {
  background-color: #263445 !important;
}

.el-tabs__nav-wrap {
  border-bottom: 1px solid #e8e8e8;
}

.el-tabs__nav {
  border: none !important;
}

.el-tabs--card > .el-tabs__header {
  border: none;
}

.el-tabs--card > .el-tabs__header .el-tabs__item {
  height: 30px;
  line-height: 30px;
  padding: 0 10px;
  border: none;
  &::after {
    content: '';
    float: right;
    height: 10px;
    width: 1px;
    background-color: #ddd;
    margin-left: 10px;
    margin-top: 10px;
  }
}

.el-tabs--card > .el-tabs__header .el-tabs__item:nth-last-of-type(1) {
  &::after {
    display: none;
  }
}

.el-date-editor--daterange {
  width: 190px !important;
}
.el-date-editor--daterange input {
  width: 70px !important;
}

td {
  vertical-align: top !important;
}
th,
td:nth-of-type(1) {
  text-align: center !important;
}

.task-list .el-table__row .cell {
  padding: 0;
  margin: 0;
}

.templ-table .el-table__body td,
.store-table .el-table__body td {
  padding: 2px 0;
  text-align: center;
}

.templ-table .el-table__body td div,
.store-table .el-table__body td div {
  height: 35px;
  line-height: 35px !important;
}

.data-table td {
  margin: 0;
  padding: 0;
  text-align: center;

  .cell {
    margin: 0;
    padding: 0;
    line-height: 40px;
  }

  span {
    width: 50px;
    display: inline-block;

    &:first-of-type {
      border-right: 1px solid #dfe6ec;
    }
  }
}

.templ-table .el-table td,
.templ-table .el-table th {
  margin: 0;
  padding: 0;

  .cell {
    margin: 0;
    padding: 0;
  }
}

.black-list {
  td {
    text-align: center;
  }
}

.mine-templ .el-card__body,
.mine-store .el-card__body {
  display: flex;

  .left-con {
    // flex: 1;
    width: 71.5%;
  }
  .right-con {
    width: 28.5%;
    // width: 520px;
  }
}

.add-templ {
  .el-input {
    .el-input__inner {
      border: none;
      // text-align: center;
    }
  }
}

.right-con .el-collapse-item__header {
  margin: 0;
  padding: 0;
  height: 34px;
  line-height: 34px;
  text-align: center;
  display: block;
  // border-bottom: 1px solid #e4e4e4;
  background-color: #03a9f4;
  color: #fff;

  i {
    position: relative;
    right: -50px;
  }
}

.add-templ .el-collapse-item__header {
  text-align: left;

  i {
    display: none;
  }
}

.right-con .el-collapse-item__content {
  padding-bottom: 0;
}

.black-list td,
.black-list th {
  margin: 0;
  padding: 0;

  .cell {
    height: 35px;
    line-height: 35px;
  }
}

.suggestion-list td {
  .cell {
    height: 45px;
    line-height: 45px;
    text-align: center;
  }
}

.mine-shop .area-select {
  border: none;
}
.mine-shop .el-collapse-item__header,
.mine-templ .el-collapse-item__header {
  text-align: center;
}

.choose-address .el-collapse-item__wrap {
  overflow: visible;
}
.choose-address .area-select {
  width: 160px !important;
}

.choose-address .cascader-menu-list-wrap {
  right: 20px;
}

.el-collapse-item__wrap .area-selected-trigger {
  padding-top: 4px !important;
}

.mine-shop {
  .el-form-item__label {
    width: 45%;
    line-height: 26px;
    padding-top: 2px;
    text-align: center;
    align-self: center;
  }
  .el-form-item__content {
    width: 55%;
    border-left: 1px solid #e4e4e4;
  }
}
.el-form-item__error {
  z-index: 99999 !important;
}

.upload-file {
  width: 110px;
  height: 110px;
  overflow: hidden;
  margin-top: 40px;
  li {
    width: 100px !important;
    height: 100px !important;
  }

  .el-upload {
    width: 100px;
    height: 100px;
    line-height: 118px;
  }
}
